//
//  CloseButton.swift
//  SwiftProject
//
//  Created by 董駸 on 2022/8/4.
//

import UIKit

class CloseButton: QMUIButton {

    private init() {
        super.init(frame: .zero)
    }
    
    private override init(frame: CGRect) {
        super.init(frame: frame)
    }
    
    convenience init(closeSize : CGSize, closeColor : UIColor, lineWidth : CGFloat = 1.2) {
        self.init()
        setImage(.qmui_image(with: .navClose, size: closeSize, lineWidth: lineWidth, tintColor: closeColor), for: .normal)
    }
    
    convenience init(closeSize : CGSize, closeColor : UIColor, lineWidth : CGFloat = 1.2, frame : CGRect) {
        self.init(closeSize: closeSize, closeColor: closeColor, lineWidth: lineWidth)
        self.frame = frame
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
